

private void SliderWindow( ControlP5 pCP5 )
{

  ControlWindow vSliderWindow;
  Slider        vOSC1, vOSC2, vOSC3;
  Numberbox     vPWM1, vPWM2, vPWM3;

  vSliderWindow = pCP5.addControlWindow("Slider", 100, 200, 800, 600);
  vSliderWindow.hideCoordinates();


  pCP5.addSlider("Osc1", 0, 93, 24, 20, 20, 300, 15);
  vOSC1 = (Slider)controlP5.controller( "Osc1" );
  vOSC1.snapToTickMarks( true );
  vOSC1.setDecimalPrecision( 0 );
  vOSC1.setNumberOfTickMarks( 94 );
  vOSC1.setId( 0 );
  vOSC1.setWindow( vSliderWindow );
  if( gUseC64Font )
  {
    vOSC1.valueLabel().style().margin(-20,0,0,0);
    vOSC1.captionLabel().style().margin(-6,0,0,0);
  }

  pCP5.addSlider("Osc2", 0, 93, 24, 20, 200, 300, 15);
  vOSC2 = (Slider)controlP5.controller( "Osc2" );
  vOSC2.snapToTickMarks( true );
  vOSC2.setDecimalPrecision( 0 );
  vOSC2.setNumberOfTickMarks( 94 );
  vOSC2.setId(7);
  vOSC2.setWindow( vSliderWindow );
  if( gUseC64Font )
  {
    vOSC2.valueLabel().style().margin(-20,0,0,0);
    vOSC2.captionLabel().style().margin(-6,0,0,0);
  }

  pCP5.addSlider("Osc3", 0, 93, 24, 20, 400, 300, 15);
  vOSC3 = (Slider)controlP5.controller( "Osc3" );
  vOSC3.snapToTickMarks( true );
  vOSC3.setDecimalPrecision( 0 );  
  vOSC3.setNumberOfTickMarks( 94 );
  vOSC3.setId( 14 );
  vOSC3.setWindow( vSliderWindow );
  if( gUseC64Font )
  {
    vOSC3.valueLabel().style().margin(-20,0,0,0);
    vOSC3.captionLabel().style().margin(-6,0,0,0);
  }


  //PWM 
  vPWM1 = controlP5.addNumberbox("PWM 1", 0, 24, 50, 50, 14);
  vPWM1.setWindow( vSliderWindow );
  vPWM1.setDecimalPrecision( 0 );
  vPWM1.setDirection(Controller.HORIZONTAL);
  vPWM1.setMin( 0 );
  vPWM1.setMax( 4096 );
  vPWM1.setId( 351 );
  if( gUseC64Font)
  {
    vPWM1.valueLabel().style().margin( -6, 0, 0, 0 );
  }

  vPWM2 = controlP5.addNumberbox("PWM 2", 0, 24, 230, 50, 14);
  vPWM2.setWindow( vSliderWindow );
  vPWM2.setDecimalPrecision( 0 );
  vPWM2.setDirection(Controller.HORIZONTAL);
  vPWM2.setMin( 0 );
  vPWM2.setMax( 4096 );
  vPWM2.setId( 352 );
  if( gUseC64Font)
  {
    vPWM2.valueLabel().style().margin( -6, 0, 0, 0 );
  }
 
  vPWM3 = controlP5.addNumberbox("PWM 3", 0, 24, 430, 50, 14);
  vPWM3.setWindow( vSliderWindow );
  vPWM3.setDecimalPrecision( 0 );
  vPWM3.setDirection(Controller.HORIZONTAL);
  vPWM3.setMin( 0 );
  vPWM3.setMax( 4096 );
  vPWM3.setId( 353 );
  if( gUseC64Font)
  {
    vPWM3.valueLabel().style().margin( -6, 0, 0, 0 );
  }

 
  envelopePanel( 1, vSliderWindow, 400, 15 );
  envelopePanel( 2, vSliderWindow, 400, 200 );
  envelopePanel( 3, vSliderWindow, 400, 400 );

  waveformPanel( 1, vSliderWindow, 600, 15 );
  waveformPanel( 2, vSliderWindow, 600, 200 );
  waveformPanel( 3, vSliderWindow, 600, 400 );
}

